﻿using System;
using AccessControl.Contracts.Models;

namespace AccessControl.Data.Models
{
    /// <summary>
    /// Represents entry on map
    /// </summary>
    /// <remarks></remarks>
    public class MapEntry : Entry, IMapEntry
    {
        #region Fields

        IPosition _PositionOnMap;

        #endregion

        #region Public Properties

        /// <summary>
        /// Gets or sets the position on map.
        /// </summary>
        /// <value>
        /// The position on map.
        /// </value>
        public IPosition PositionOnMap
        {
            get { return _PositionOnMap; }
            set
            {
                if (_PositionOnMap != value)
                {
                    _PositionOnMap = value;
                    NotifyPropertyChanged("PositionOnMap");
                }
            }
        }
        
        #endregion
    }
}
